package com.zs.zcerp.approval.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * ${comments}
 *
 * @author Henry
 * @email *****@mail.com
 * @date 2021-04-09 20:58:14
 */
@Data
@TableName("QH_CHKMGR_M")
public class QhChkmgrmEntity  implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *组织机构id
	 */

	@NotNull(message = "{required}")
	@TableId("ORG_ID")
	private Integer orgId ;


	/**
	 * 核检id唯一
	 */
	@TableField("CHKMGR_ID")
	private Long  chkmgrId;

	/**
	 * $column.comments
	 */
	@TableField("BILLSTD_NO")
	private String billstdNo;

	/**
	 * 流程代码
	 */
	@TableField("BASESTD_NO")
	private String basestdNo;

	/**
	 * 单据编号
	 */
	@TableField("ORDER_NO")
	@NotBlank(message = "{required}")
	private String orderNo;

	/**
	 * 送签核人工号
	 */
	@TableField("GRT_USER")
	@NotBlank(message = "{required}")
	private String grtUser;

	/**
	 * 送签核人中文名字
	 */
	@TableField("GRT_USER_CNAME")
	@NotBlank(message = "{required}")
	private String grtUserCname;

	/**
	 * $column.comments
	 */
	@TableField("GRT_DEPT")
	private String grtDept;



	/**
	 * 送签时间
	 * 初始创建单据时间 erp同步过来
	 */
	@TableField("SEND_TIME")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date sendTime;

	/**
	 * $column.comments
	 */
	@TableField("CHK_TYPE")
	private String chktype;

	/**
	 * $column.comments
	 */
	@TableField("CHK_GRP")
	private String chkGrp;

	/**
	 * $column.comments
	 */
	@TableField("PLAN_ETIME")
	private Date planEtime;

	/**
	 * $column.comments
	 */
	@TableField("FACT_ETIME")

	private Date factEtime;

	/**
	 * $column.comments
	 */
	@TableField("DL_NOTEID")
	private Integer dlNoteId;

	/**
	 * $column.comments
	 */
	@TableField("COL1")
	private String col1;

	/**
	 * $column.comments
	 */
	@TableField("COL2")
	private String col2;

	/**
	 * $column.comments
	 */
	@TableField("COL3")
	private String col3;

	/**
	 * $column.comments
	 */
	@TableField("COL4")
	private String col4;

	/**
	 * $column.comments
	 */
	@TableField("COL5")
	private String col5;

	/**
	 * $column.comments
	 */
	@TableField("STATUS")
	private Integer status;

	/**
	 * $column.comments
	 */
	@TableField("VEND_NO")
	private String vendNo;

	@TableField(exist = false)
	private String createTimeFrom;

	@TableField(exist = false)
	private String createTimeTo;

	/**
	 *  当前用户
	 */
	@TableField(exist = false)
	private String currentUser;

	/**
	 *  型号
	 */
	@TableField(exist = false)
	private String modelNo;




}
